<?xml version="1.0"?>
<component name="org.nuxeo.ecm.platform.admin.center.actions.widgets.override">

  <require>org.nuxeo.ecm.platform.admin.center.actions.widgets</require>

  <documentation>

    @since 6.0, global widgets used to render actions/tabs
    in Admin Center.
  

  </documentation>
  <extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widget name="adminCenterTabs" type="tabs">
      <properties mode="view">
        <property name="actionsDisplay">links</property>
        <property name="addForm">true</property>
        <property name="useAjaxForm">#{useAjaxTabs}</property>
        <property name="category">NUXEO_ADMIN</property>
        <property name="actions">#{adminViews.availableActions}</property>
        <property name="currentTabAction">#{adminViews.currentView}</property>
        <property name="overallDisplay">vertical_block</property>
        <property name="tabContentBeforeInclude">/incl/appcenter/admin_tab_header.xhtml</property>
      </properties>
    </widget>

    <widget name="adminCenterSubTabs" type="tabs">
      <properties mode="view">
        <property name="actionsDisplay">links</property>
        <property name="addForm">true</property>
        <!-- use ajax only if bookmarkable URLs can be preserved -->
        <property name="useAjaxForm">#{canUseAjaxTabs}</property>
        <property name="actions">#{adminViews.availableSubActions}</property>
        <property name="currentTabAction">#{adminViews.currentSubView}</property>
      </properties>
    </widget>

  </extension>

</component>
